/**
 */
package org.karelun.rabbit.graph.impl;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.internal.cdo.CDOObjectImpl;

import org.karelun.rabbit.graph.Connection;
import org.karelun.rabbit.graph.Diagram;
import org.karelun.rabbit.graph.GraphPackage;
import org.karelun.rabbit.graph.Shape;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Diagram</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link org.karelun.rabbit.graph.impl.DiagramImpl#getText <em>Text</em>}</li>
 *   <li>{@link org.karelun.rabbit.graph.impl.DiagramImpl#getShapes <em>Shapes</em>}</li>
 *   <li>{@link org.karelun.rabbit.graph.impl.DiagramImpl#getConnections <em>Connections</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class DiagramImpl extends CDOObjectImpl implements Diagram {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DiagramImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return GraphPackage.Literals.DIAGRAM;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected int eStaticFeatureCount() {
		return 0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getText() {
		return (String)eGet(GraphPackage.Literals.TEXTED__TEXT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setText(String newText) {
		eSet(GraphPackage.Literals.TEXTED__TEXT, newText);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<Shape> getShapes() {
		return (EList<Shape>)eGet(GraphPackage.Literals.DIAGRAM__SHAPES, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<Connection> getConnections() {
		return (EList<Connection>)eGet(GraphPackage.Literals.DIAGRAM__CONNECTIONS, true);
	}

} //DiagramImpl
